import request from "../utils/request"

//搜索
export const search = params => {
    //被执行的时候就会发起一次网络请求
    return request({
        url: "/cloudsearch",
        params  
    })
}

//推荐歌单网络地址
export const recommendSongList = () => {
    //被执行的时候就会发起一次网络请求
    return request({
        url: "/personalized",
        params: {
            limit:6 //默认显示的是6个
        }
    })
}

//最新音乐网络接口

export const newSong = params => {
    return request({
        url: "/personalized/newsong",
        params
    })
}


//最新评论
export const hotCommentAPI = params => {
    return request({
        url: "/comment/hot?id=186016&type=0&limit=10",
        params
    })
}


//热门搜索
export const hotSearchAPI = () => {
    return request({
        url:"/search/hot"
   }) 
}